GXDespoolResource
QuickDraw GX sends theGXDespoolResource
message to read a resource from the spool file. If you perform your own spooling, you need to override theGXDespoolResource
message to interpret your spool file format. Your override of theGXDespoolResource
message must match the following formal declaration:
OSErr MyDespoolResource (gxSpoolFile aSpoolFile, ResType aType, short id, Handle *aResource);
aSpoolFile
- The spool file.
aType
- The resource type of the resource to read.
id
- The resource ID of the resource to read.
aResource
- On return, a handle to the resource that was despooled.
- function result
- An error code. The value
noErr
indicates that the operation was successful.DESCRIPTION
You can override theGXDespoolResource
message to decrypt a resource if you encrypted a resource in an override of theGXSpoolResource
message.The default implementation of this message reads the requested resource from the
spool file.SPECIAL CONSIDERATIONS
You rarely send theGXDespoolResource
message yourself.If you are providing your own spooling, you need to totally override the
GXDespoolResource
message and all of the other spooling and despooling messages.If you are not providing your own spooling, you must forward the
GXDespoolResource
message to allow the default implementation to read the resource data from the spool file. Forward this message prior to modifying the resource data.RESULT CODES
gxSegmentLoadFailedErr A required code segment could not be found,
or there was not enough memory to load it.gxPrUserAbortErr The user has canceled printing. gxIncompletePrintFileErr The spool file is not complete. gxCrashedPrintFileErr The spool file could not be opened. gxInvalidPrintFileVersion The version number of the spool file is not valid. SEE ALSO
TheGXSpoolResource
is described on page 4-71.
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help